/*
 * SocketInfo.h
 *
 *  Created on: 2017年6月6日
 *      Author: orange
 */

#ifndef SOCKETINFO_H_
#define SOCKETINFO_H_

#include "JuzEvent.h"

class SocketInfoJuzEvent: public JuzEvent {
public:
	int nfd;
	char what;
	char type;
	char arg1;
	char arg2;
	int  nLen;
	char *pData;

public:
	SocketInfoJuzEvent(int fd,char what,char type,char arg1,char arg2,int nLen,char *pData,const char *evName = mEventName);
	virtual ~SocketInfoJuzEvent();

	char getArg1() const;
	char getArg2() const;
	char getType() const;
	char getWhat() const;

	int getLen() const;
	char* getData() const;

	int getNfd() const ;

public:
	static const char* mEventName;
};

#endif /* SOCKETINFO_H_ */
